package com.hansheng.service;

import com.alibaba.fastjson.JSONArray;
import com.hansheng.entity.OutFormEntity;
import com.hansheng.entity.SheetEntity;

/**
 * Created by GoldenMan on 2017/5/12.
 */
public interface SheetService {
    boolean saveSheet(SheetEntity sheetEntity);

    boolean saveOutForm(OutFormEntity outFormEntity, JSONArray sheetDetails);

    boolean saveTailings(int outid, int operatorId, String tailingDetails);

    JSONArray getSheetByCondition(String whereHql, Object[] params, int firstResult, int maxResult);

    JSONArray getAllOutForm();

    int getOutFormNoCounter(String cutMaterialNo);
    JSONArray getOutFormArrayByCondition(String whereHql, Object[] params);
}
